/*!	@brief A Rect is defined by 2 points, A and B
 *             B
 * 		*----*
 * 		|    |	
 * 		|    |
 * 		*----*
 *    A
 */
Rect	=	function(A, B)
{
	this.m_LeftBottom	=	A;
	this.m_RightTop		=	B;
	
	this.m_Width	=	B.x - A.x;
	this.m_Height	=	B.y - A.y;
}

/*!	@brief Return true if the specified point is inside the rectangle	*/
Rect.prototype.IsIn	=	function(point)
{
	if(point.x<= this.m_RightTop.x && point.x >= this.m_LeftBottom.x)
	{
		if(point.y<= this.m_RightTop.y && point.y>= this.m_LeftBottom.y)
		{
			return true;
		}
	}
	return false;
}
